<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

$this->title = $model->first_name . $model->last_name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app.order', 'Order Customers'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="order-customer-view">

    <h2 class="page-header"><?= Html::encode($this->title) ?></h2>

    <p>
        <?= Html::a(Yii::t('app.order', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app.order', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app.order', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            //'order_id',
            'first_name',
            'last_name',
            'en_first_name',
            'en_last_name',
            'pinyin',
            [
                'attribute' => 'gender',
                'value' => Yii::$app->params['gender'][$model->gender],
            ],
            'birthday:date',
            'country',
            'passport',
            'passport_add',
            'passport_date:date',
            [
                'attribute' => 'passport_type',
                'value' => Yii::$app->params['passport_type'][$model->passport_type],
            ],
            'phone',
            'remark',
            [
                'attribute' => 'status',
                'value' => Yii::$app->params['status'][$model->status],
            ],
            //'user_id',
            'created_at:date',
            'updated_at:relativeTime',
        ],
    ]) ?>

</div>
